package com.example.service.impl;
import com.example.mapper.OperationLedgerMapper;
import com.example.model.Machine;
import com.example.model.OperationLedger;
import com.example.service.OperationLedgerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class OperationLedgerServiceImpl implements OperationLedgerService {
    @Resource
    public OperationLedgerMapper operationLedgerMapper;

    /**
     * @param param
     * @Description 根据二维码查询
     * @Author chengjunyu
     * @Date 2022/1/24 11:11
     * @Param id
     * @Return com.example.mybatis.model.SysUser
     * @Exception
     */
    @Override
    public OperationLedger selectOperationLedgerByParam(String param) {
        return operationLedgerMapper.selectOperationLedgerByParam(param);
    }

    /**
     * @param operationLedger
     * @Description 根据二维码查询
     * @Author chengjunyu
     * @Date 2022/1/24 11:11
     * @Param id
     * @Return com.example.mybatis.model.SysUser
     * @Exception
     */
    @Override
    public int insertOperationLedger(OperationLedger operationLedger) {
        return operationLedgerMapper.insertOperationLedger(operationLedger);
    }

    /**
     * @param operationLedger
     * @Description 修改用户信息
     * @Author chengjunyu
     * @Date 2022/1/24 11:12
     * @Param sysUser
     * @Return int
     * @Exception
     */
    @Override
    public int updateOperationLedger(OperationLedger operationLedger) {
        return operationLedgerMapper.updateOperationLedger(operationLedger);
    }

}
